package com.chenyongjing.design.pattern.strategy.promotion;

import java.util.Set;

public class Test {
    public static void main(String[] args) {
//        String promotion ="EMPTY";
//        PromotionActivity activity = null;

//        if ("EMPTY".equals(promotion)){
//            System.out.println("当前无优惠");
//            PromotionActivity activity = new PromotionActivity(new EmptyStrategy());
//        }else if("".equals(promotion)){
//
//        }

//        activity.execute();

        Set<String> promotionKeys = PromotionStrategyFactory.getPromotionKeys();
        String selectKey="COUPON";
//        String selectKey="EMPTY";
        IPromotionStrategy strategy =PromotionStrategyFactory.getPromotionStrategy(selectKey);
        strategy.doPromotion();

    }
}
